package com.example.demo.dao;


import com.example.demo.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,Long> {

    //根据同户名和密码返回数据库的数据
    User findByUsernameAndPassword(String username,String password);
}
